/*
 * @Author: your name
 * @Date: 2021-06-13 08:10:49
 * @LastEditTime: 2021-06-13 08:24:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \第02遍\assets\js\index.js
 */
$(function () {
    let layer = layui.layer
    $('#logout').on('click',function () {
        layer.confirm('确定退出登陆', {icon: 3, title:'提示'}, function(index){
            //do something
            location.href = '/login.html'
            localStorage.removeItem('token');
            layer.close(index);
          });
    })
})